package com.dalin.framework.common;

import com.dalin.framework.common.utils.StringUtils;

/*****************************************************************************
 * @className: 公用静态属性变量                                                   *
 * @discribe : 公用静态属性变量                                                   *
 * @author   : najianlin                                                      *
 * @crtDate  : 2010-01-20                                                    *
 * @email    : kernelin@163.com                                                *
 * @modUser  : 那建林                                                           *
 * @modDate  : 2010-01-20                                                      *
 * @remark   :                                                                *
 * @reversion:                                                                *
 *****************************************************************************/
public final class PropertyConst {
	private PropertyConst() {} // 不允许构造
	
	
	// 常用颜色
	public static final String[] COLOR_ARRAY = {
		"FFFF00", "CC66FF", "CC6699", "CCCC33", "FF3300",
		"CCFF00", "663300", "6666FF", "99CC66", "0033FF", "009900"};
	
	// 常见编码格式
	public static final String[] ARRAY_ENCODING = {
		"UNICODE", "UTF-8", "GBK", "GB2312", "ISO-8859-1", "BIG5"
	};
	
	// 0~9,a-z
	public static final String[] ARRAY_DIGIT = {
		"0" , "1" , "2" , "3" , "4" , "5" , "6" , "7" , "8" , "9" ,
		"a" , "b" ,	"c" , "d" , "e" , "f" , "g" , "h" ,	"i" , "j" ,
		"k" , "l" , "m" , "n" ,	"o" , "p" , "q" , "r" , "s" , "t" ,
		"u" , "v" , "w" , "x" , "y" , "z"};
	
	// 0~9的人民币大写之字符数组
	public static final char[] ARRAY_CAPITAL_NUM = {
		'零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'};
	
	// 表示一周七天星期之字符串数组
	public static final String[] ARRAY_WEEK = {
		"星期日", "星期一", "星期二", "星期三","星期四", "星期五", "星期六"};
	
	// 各种操作系统类型
	public static final String[] ARRAY_OS = {
		"Linux", "Mac OS", "Windows", "OS/2", "Solaris", "SunOS", "MPE/iX",
		"HP-UX", "AIX"};
	
	// 日期类格式
	public static final String[] DATE_PATTERN = {"yyyy", "yyyy-MM", 
		"yyyy-MM-dd", "yyyy-MM-dd HH", "yyyy-MM-dd HH:mm", 
		"yyyy-MM-dd HH:mm:ss"};
	
	// 随机5位字符串
	public static final String USER_SESSION_NAME = StringUtils
			.getRandomStr(PropertyConst.ARRAY_DIGIT, 5);
	
	
	/* 标点符号 */
	public static final String COMMA = ","; // 逗号
	public static final String DOT = "."; // 点
	public static final String SEMICOLON = ";"; // 分号
	public static final String COLON = ":"; // 冒号
	public static final String EMPTY = ""; // 空值
	public static final String SPACE = " "; // 空格
	public static final String TAB = "    "; // TAB
	public static final String TWO_TAB = "        "; // 2TAB
	public static final String THREE_TAB = "            "; // 3TAB
	public static final String FOUR_TAB = "                "; // 4TAB
	public static final String FIVE_TAB = "                    "; // 5TAB
	public static final String SIX_TAB = "                        "; // 6TAB
	public static final String LINE_SEPARATOR = System.getProperty("line.separator"); // 换行
	public static final String PERCENT = "%"; // 
	public static final String EQUAL = "="; // 等号
	public static final String UNDERLINE = "_"; // 下划线
	public static final String HYPHEN = "-"; // 字符连接线
	public static final String LEFT_BRACE = "{"; // 左大括号	
	public static final String RIGHT_BRACE = "}"; // 右大括号
	public static final String LEFT_PARENTHESIS = "("; // 左括弧
	public static final String RIGHT_PARENTHESIS = ")"; // 右括弧
	public static final String SINGLE_SLASH = "/"; // 单斜杠
	public static final String DOUBLE_SLASH = "//"; // 双斜杠
	public static final String SINGLE_BACKSLASH = "\\"; // 单反斜杠
	public static final String SINGLE_BACKSLASH_DOT = "\\."; // 点
	public static final String SINGLE_BACKSLASH_COMMA = "\\,"; // \\,
	public static final String PREFIX_UNICODE = "\\u"; // UNICODE码前缀
	/* hql关键字 */
	public static final String AND = "and";
	public static final String OR = "or";
	public static final String HIBOBJ = "hibObj";
	public static final String ORDER_BY = " order by ";
	public static final String GROUP_BY = " group by ";
	
	/* java修饰符 */
	public static final String PUBLIC_STR = "public";
	public static final String PRIVATE_STR = "private";
	public static final String PROTECTED_STR = "protected";
	
	/* java关键字或类名的字符串表示 */
	public static final String NULL_STR = "null"; // 
	public static final String UNDEFINED_STR = "undefined"; // 
	public static final String HTTP_STR = "http://"; // 
	public static final String PACKAGE_STR = "package"; // 
	public static final String IMPORT_STR = "import"; //
	public static final String CLASS_STR = "class"; // 
	public static final String INTERFACE_STR = "interface"; // 
	public static final String EXTENDS_STR = "extends"; // 
	public static final String IMPLEMENTS_STR = "implements"; // 
	public static final String TRY_STR = "try"; // 
	public static final String CATCH_STR = "catch"; // 
	public static final String THROWS_STR = "throws"; // 
	public static final String EXCEPTION_STR = "Exception"; // 
	public static final String RETURN_STR = "return"; // 
	public static final String VOID_STR = "void"; // 
	public static final String THIS_STR = "this"; // 	
	public static final String GET_STR = "get"; // 
	public static final String SET_STR = "set"; // 
	public static final String STRING_STR = "String"; // 
	public static final String DOUBLE_STR = "Double"; // 
	public static final String BIG_DECIMAL_STR = "BigDecimal"; //
	public static final String INTEGER_STR = "Integer"; // 
	public static final String LONG_STR = "Long"; // 
	public static final String DATE_STR = "Date"; // 
	
	/* 各种数据库的驱动字符串 */
	public static final String DRIVER_ODBC = "sun.jdbc.odbc.JdbcOdbcDriver";
	public static final String DRIVER_MSSQL_2000 = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
	public static final String DRIVER_MSSQL_2005 = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
	public static final String DRIVER_ORACLE = "oracle.jdbc.driver.OracleDriver";
	public static final String DRIVER_DB2 = "com.ibm.db2.jdbc.net.DB2Driver";
	public static final String DRIVER_MYSQL = "com.mysql.cj.jdbc.Driver";
	public static final String DRIVER_SYBASE = "com.sybase.jdbc2.jdbc.SybDriver";
}
